{
	template:`
    <m-page @back="back" :title="param.title">
        <m-top></m-top>
        <m-title>{{param.title}}
			<template #action>
			</template>
        </m-title>
		<m-top></m-top>
		<m-list ref="list" :url="url" :params="params" :bottom="0" :search="search">
			<template #item="{item}">
				<m-card join>
					<div class="flex padding-sm align-center">
						<div class="flex-sub padding-right-sm">
						    <div>
						        <div class="cu-tag radius" :class="'bg-'+item.level.color">{{item.level.name}}</div>
                                <span class="padding-left-sm">{{item.realName}}</span>
                                <span class="text-sm text-gray padding-left-xs">{{item.phoneNum}}</span>
						    </div>
						    <div class="padding-top-xs flex-sub text-sm">余额：{{formatAmount(item.balance)}}元<span v-if="item.freeze">（冻结{{formatAmount(item.freeze)}}）</span></div>
						    <div v-if="item.remark" class="padding-top-xs text-sm text-gray">{{item.remark}}</div>
						</div>
						<div class="text-right text-sm">
						    <div :class="item.balance-item.freeze>0?'text-green':'text-red'">{{formatAmount(item.balance-item.freeze)}}元</div>
                            <div v-if="selectOid==item.oid" class="cu-tag radius bg-blue light">已选</div>
                            <m-button v-else @click="selectMember(item)" size="sm">选择</m-button>
						</div>
					</div>
				</m-card>
			</template>
		</m-list>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
            url:'action/base/memberInfo/getList',
            params:{'status@eq':'Y'},
            search:[
                {title:'姓名',name:'realName@like',input:'text'},
                {title:'手机号',name:'phoneNum@like',input:'text'},
                {title:'余额起',name:'balance@ge',input:'number'},
                {title:'余额止',name:'balance@le',input:'number'},
                {title:'积分起',name:'point@ge',input:'number'},
                {title:'积分止',name:'point@le',input:'number'}
            ],
            selectOid:''
		};
	},
	mounted(){
	    this.selectOid=this.param.selectOid;
	},
	methods:{
	    selectMember:function(member){
	        this.back(true,member);
	    }
	}
}